#include <iostream>

int main() {
    int n;
    std::cin >> n;
    std::cout << (n < 3 | n % 2 ? "NO" : "YES");
    return 0;
}